<script setup lang="ts">
// computed 结合 ts 

import { computed, ref } from 'vue';

// 1. 类型推导
// const count = ref(100)
// const double = computed(() => {
//   return (count.value *2).toFixed(2)
// })

// 2. 指定计算属性类型
const count = ref(100)
const double = computed<string>(() => {
  return (count.value *2).toFixed(2)
})
</script>

<template>
  <div class="app-page">app</div>
</template>

<style lang="scss" scoped></style>
